package com.woniu.entity.dto;

import java.util.Date;

public class CourseDTO {
    public CourseDTO() {
    }

    public CourseDTO(String title, String description, Double price, String cover, Integer buyCount, Integer learnCount) {
        this.title = title;
        this.description = description;
        this.price = price;
        this.cover = cover;
        this.buyCount = buyCount;
        this.learnCount = learnCount;
    }

    /**
     * 课程名称
     */
    private String title;
    /**
     * 课程描述
     */
    private String description;
    /**
     * 课程价格
     */
    private Double price;
    /**
     * 课程封面图片路径
     */
    private String cover;
    /**
     * 销售量
     */
    private Integer buyCount;
    /**
     * 学习人数
     */
    private Integer learnCount;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public Integer getLearnCount() {
        return learnCount;
    }

    public void setLearnCount(Integer learnCount) {
        this.learnCount = learnCount;
    }

    @Override
    public String toString() {
        return "CourseDTO{" +
                "title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", cover='" + cover + '\'' +
                ", buyCount=" + buyCount +
                ", learnCount=" + learnCount +
                '}';
    }
}
